<!DOCTYPE html>
<html >
<head>
  <meta charset="UTF-8"></meta>
  <title>浏览器崩溃测试页面</title>
</head>
<body>


<h2>浏览器崩溃测试页面</h2>


<p>点击确定后，等待一会儿，浏览器会崩溃。</p>


<script>
onbeforeunload = function(){localStorage.x=1};


if(confirm("确定要让您的浏览器崩溃吗?")){
  setTimeout(function(){
    while(1)location.reload(1)
  }, 1000)
}
</script>


</body>
</html>